#include "Date.h"

void DateTest1()
{
	Date date1(2023, 2, 16);
	Date date2(2024, 1, 1);
	//Date date3(2023, 2, 29);

	cout << (date1 < date2) << endl;
	cout << (date1 == date2) << endl;

	//date1 += 10000;
	//date1.Print();

	//Date date4(date1 + 10000);
	//date1.Print();
	//date4.Print();

	//date1 -= 10000;
	//date1.Print();

	Date date5(date1 - 10000);
	date1.Print();
	date5.Print();
}

void DateTest2()
{
	Date date1(2023, 2, 16);
	Date date2(2024, 1, 1);

	//date1.Print();
	//++date1;
	//date1.Print();
	//date1++;
	//date1.Print();

	//date1.Print();
	//Date date3(date1++);
	//date3.Print();
	//date1.Print();

	//date1.Print();
	//Date date4(++date1);
	//date4.Print();
	//date1.Print();

	//date2.Print();
	//--date2;
	//date2.Print();
	//date2--;
	//date2.Print();

	date2.Print();
	Date date5(date2--);
	date5.Print();
	date2.Print();
}

void DateTest3()
{
	Date date1(2023, 2, 27);
	//cout << date1;
	//cin >> date1;
	//cout << date1;

	date1 += -100;
	cout << date1;
	date1 -= -100;
	cout << date1;

	Date date2(2050, 1, 1);
	int day = date1 - date2;
	cout << "date1 - date2 = " << day << endl;
	day = date2 - date1;
	cout << "date2 - date1 = " << day << endl;
}

int main()
{
	//DateTest1();
	//DateTest2();
	//DateTest3();

	return 0;
}